package com.shop.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.shop.admin.valid.AddGroup;
import com.shop.admin.valid.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * (ShopStock)实体类
 *
 * @author makejava
 * @since 2022-09-02 21:41:13
 */
@TableName("shop_stock")
@Data
public class ShopStock implements Serializable {
    private static final long serialVersionUID = -31026355562127154L;
    /**
     * 库存id
     */
    private Long stockId;
    /**
     * 商品id
     */
    private Long orderId;
    /**
     * 库存数量
     */
    @NotNull(groups = {AddGroup.class, UpdateGroup.class})
    private Integer stockCount;



}

